#ifndef LOCKIT_H
#define LOCKIT_H

/*
 ============data section ========
*/

//================================

// macros define
#define DEBUG(fmt, ...)                                             \
    do {                                                            \
        if (debug_mode) {                                           \
            fprintf(stderr, "[lockit-debug]: " fmt, ##__VA_ARGS__); \
        }                                                           \
    } while (0)

#define TSTAMP_N_SECS(n) (n * 1.0)
#define TSTAMP_N_MINS(n) (60 * TSTAMP_N_SECS(n))
#define START_TIMER(timer_obj, timeout, callback) timer_obj = start_timer(timer_obj, timeout, callback)

#define STOP_TIMER(timer_obj) timer_obj = stop_timer(timer_obj)

#define isutf(c) (((c) & 0xC0) != 0x80)

#endif // header file protect
       // END: CODEREVIEW
